import Helper from "../libs/HelperMgr";

const {ccclass, property} = cc._decorator;

@ccclass
export default class BarrierManager extends cc.Component {

    @property(cc.Prefab)
    gull: cc.Prefab = null;


    onLoad(): void {
    }


    start() {
        this.creteGull(Helper.randAtoB(0,5,true));
    }

    creteGull(num:number){
        for (let i = 0; i < num; i++) {
           let gull:cc.Node = cc.instantiate(this.gull);
           gull.setParent(this.node);
           gull.setPosition(Helper.randAtoB(-1000,1000),Helper.randAtoB(600,900))  
        }
    }


   

}
